package com.qkst.website.backstage.service;

import java.util.List;

import com.qkst.website.backstage.bean.CategoryBean;
import com.qkst.website.backstage.bean.CategoryRelAttrBean;

public interface CategoryService {
	
	/**
	 * 查询分类
	 * @return List<CategoryBean>
	 */
	public List<CategoryBean> list(CategoryBean category);
	
	/**
	 * 查询总记录数
	 * @param category
	 * @return
	 */
	public int queryCount(CategoryBean category);

	/**
	 * 添加产品分类
	 * @param category
	 * @return CategoryBean
	 */
	public CategoryBean save(CategoryBean category);

	/**
	 * 删除产品分类
	 * @param category
	 * @return boolean
	 */
	public boolean delete(CategoryBean category);

	/**
	 * 保存产品类别和属性关系
	 * @param categoryRelAttr
	 * @return boolean
	 */
	public boolean saveCategoryRelAttr(CategoryRelAttrBean categoryRelAttr);

}
